#include "errorCheck.h"

void ErrorChecker::check_textfile(FILE *fHandle1, FILE *fHandle2, unsigned int size)
{
    return;
}

void ErrorChecker::check_data(float *data1, float *data2, unsigned int size)
{
    for(unsigned int i=0; i<size; i++) {
      float rate = fabs((data1[i] -data2[i])/data1[i]);
      if(rate>ERROR_THRESHOLD_P) {
          error_messages_p.push_back(ErrorMsg(i, data1[i], data2[i], rate));
      }
    }
}

